<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="apple-mobile-web-app-title" content="阿福易购">
    <meta content="telephone=no" name="format-detection" />
    <meta content="email=no" name="format-detection" />
    <!-- uc、qq浏览器 -->
    <meta name="screen-orientation" content="portrait">
    <meta name="full-screen" content="yes">
    <meta name="browsermode" content="application">
    <meta name="x5-orientation" content="portrait">
    <meta name="x5-fullscreen" content="true">
    <meta name="x5-page-mode" content="app">
    <meta name="HandheldFriendly" content="true">
    <meta name="MobileOptimized" content="320">
    <meta name="csrf-token" content="{{ csrf_token() }}" />
    <meta name="keywords" content="{{$SEO['keywords']}}"/>
    <meta name="description" content="{{$SEO['description']}}"/>
    <title>商品快照_{{$SEO['title']}}</title>
    <link rel="stylesheet" href="{{ asset('/build/css/app.min.css') }}">
</head>
<body id="goodsInfo" ontouchstart="">

@inject('pictureService','App\Interfaces\PictureService')

@inject('goodsService','App\Interfaces\GoodsService')

@inject('userCollectionService','App\Interfaces\UserCollectionService')

@inject('brandService','App\Interfaces\BrandService')

<?php

	if(empty($order_goods)){
	    echo '商品快照不存在！';
	}

	$shopObj = $goodsService->getShop($order_goods->shop_id);

	$shopInCollection=isset($user)?$userCollectionService->isInCollection($user_id,'SHOP',$order_goods->shop_id):false;

	$brandObj = $brandService->get($order_goods->brand_id);
?>

<header class="ui-header ui-header-stable  af-header">
    <ul class="ui-row-flex">
        <li class="ui-col ui-flex ui-flex-pack-start">
            <i ontouchstart="window.history.back();" class="ui-icon-return"></i>
        </li>
        <li class="ui-col ui-flex ui-flex-pack-center">
            <h1>商品快照</h1>
        </li>
        <li class="ui-col ui-flex ui-flex-pack-end">
            <i class="ui-icon-home" data-href="/"></i>
        </li>
    </ul>
</header>

<footer class="ui-footer ui-goods-footer">
    <div class="ui-row-flex">
        <div class="ui-col">
            <button class="ui-btn ui-btn-cart" onclick="window.location.href='/goods/{{$order_goods->goods_id}}'">查看商品最新信息</button>
        </div>
    </div>

</footer>
<div class="ui-container ui-goods">
    <section class="ui-goods-slider af-border-b">
        <div class="ui-slider">
            <ul class="ui-slider-content" style="width: 300%">
                <li class="current" data-href="{{route('mobile.goods.detail', [$order_goods->goods_id])}}"><span style="background-image:url({{$pictureService::thumb($order_goods->goods_thumb, 800, 800)}}" alt="{{$order_goods->goods_name}})"></span></li>
            </ul>
        </div>
    </section>
    <section class="ui-panel ui-panel-simple ui-goods-header">
        <h2><span data-href="{{route('mobile.goods.detail', [$order_goods->goods_id])}}">{{$order_goods->goods_name}}</span> <label class="ui-label-s ui-label-light">
                @if($order_goods->type==0)
                    一般商品
                @elseif($order_goods->type==1)
                    e贸易商品
                @endif</label></h2>
        <h3 class="ui-panel-subtitle" data-href="{{route('mobile.goods.detail', [$order_goods->goods_id])}}">{{$order_goods->goods_pet_name}}</h3>
    </section>

    <section class="ui-panel ui-panel-simple ui-goods-price">
        <h2 class="af-border-b">价格：<span class="af-txt-highlight">￥{{$order_goods->shop_price}}</span></h2>
    </section>

    <ul class="ui-list ui-list-one ui-goods-shop af-border-tb">
        <li>
            <div class="ui-list-info">
	            <h4 class="ui-nowrap">您现在查看的是 <a href="" class="text-color-11 link">商品快照</a></h4>
            </div>
        </li>
        <li>
            <div class="ui-list-info">
	            <h4 class="ui-nowrap">该快照在【{{date('Y-m-d H:i:s' ,$order_goods->add_time)}}】创建。</h4>
            </div>
        </li>
        <li class="ui-arrowlink" data-href="{{route('mobile.goods.detail', [$order_goods->goods_id])}}">
            <a class="text-color-11 link" href="{{route('mobile.goods.detail', [$order_goods->goods_id])}}" target="_blank">点此查看最新宝贝详情</a>
        </li>
    </ul>
    <ul class="ui-goods-bz ui-whitespace">
        <li><i class="ui-icon-success"></i><span>正品保障</span></li>
        <li><i class="ui-icon-success"></i><span>告别传统海淘漫长等待</span></li>
        <li><i class="ui-icon-success"></i><span>支付便捷售后无忧</span></li>
    </ul>


    <section class="ui-panel ui-panel-simple ui-goods-detail">
    	{!! $order_goods->goods_content !!}
    </section>
</div>

<script src="{{ asset('/build/lib/zepto.min.js') }}"></script>
<script src="{{ asset('/build/js/frozen.js') }}"></script>
<script src="{{ asset('/build/js/app.min.js') }}"></script>
</body>
</html>